<?php
class MasterEducationSchoolsFForm extends BaseFormAdmin{
	public function configure(){
		$this->setWidgets(array(
				'name'        => new sfWidgetFormInputText(),
				'short_name'        => new sfWidgetFormInputText(),
				'description' => new sfWidgetFormTextarea(),				
				'information' => new sfWidgetFormTextarea(),
		));

		$this->setValidators(array(
				'name'        => new sfValidatorString(array('max_length' => 255, 'required' => true)),
				'short_name'        => new sfValidatorString(array('max_length' => 255, 'required' => true)),
				'description' => new sfValidatorString(array('required' => false)),
				'information' => new sfValidatorString(array('required' => false)),
				
		));
		
		parent::configure();
		
		/*
		 * Setting name of form
		*/
		$this->widgetSchema->setNameFormat('MasterEducationSchools[%s]');
		$this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);
	}
	
}
